<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/pages/common/taglib.jsp"%>

<c:forEach var="shopbanner" varStatus="shopbannerindex" items="${datas}">
	<tr>
		<td>
			${shopbanner.id}
			<c:if test="${shopbannerindex.index==0}"><input type="hidden" id="itemCount" value="${itemCount}"/></c:if>
		</td>
		<td class="keys">${shopbanner.title}</td>
		<td><img src="${shopbanner.imgurl}" alt="" width="100" height="100"></td>
		<td>${shopbanner.positon}</td>
		<td class="tmui-tips" tip="${tz:formatDate(shopbanner.createTime,'yyyy-MM-dd HH:mm:ss')}">
				${tz:timeFormat(shopbanner.createTime)}
		</td>
		<td>
			<tz:if test="${shopbanner.shown=='001'}">
				<tz:then><a href="javascript:void(0)" opid="${shopbanner.id}" mark="shown" val="002" onclick="tzAdmin.op(this);" class="green">是</a></tz:then>
                	<tz:else><a href="javascript:void(0)" opid="${shopbanner.id}" mark="shown" val="001" onclick="tzAdmin.op(this);" class="red">否</a></tz:else>
			</tz:if>
		</td>

		<td>
			<a href="${adminPath}/shop/shopbanner/edit/${shopbanner.id}"  class="btn btn-success" >修改</a>
			<a href="javascript:void(0);" data-opid="${shopbanner.id}" class="btn btn-danger" onclick="tzAdmin.remove(this)">删除</a>
		</td>
	</tr>
</c:forEach>
